package com.cpdmali.api.helper;

import com.cpdmali.api.Exception.BadParameterException;

public class ConstanteProperties {
	
	private static String PROPERTIES_FILE;
		
	public static final String HOST_WS_SERVER = "webservicews.host";
	
	public static final String NAME_WS_SERVER = "webservicews.namecomponante";
	
	public static final String HOST_SERVER = "application.host";
	
	public static final String NAME_SERVER = "application.namecomponante";
	
	public static final String CONNECTION_TIMEOUT = "application.connection_timeout";
	
	public static final String SO_TIMEOUT = "application.so_timeout";
	
	public ConstanteProperties(){
		
	}
	public ConstanteProperties(String propertiesFile) throws BadParameterException{
		if(!StringTools.isEmpty(propertiesFile)){
			setPROPERTIES_FILE(propertiesFile);
		}else{
			throw new BadParameterException(propertiesFile);
		}
	}
	public static String getPROPERTIES_FILE() {
		return PROPERTIES_FILE;
	}
	public static void setPROPERTIES_FILE(String pROPERTIES_FILE) {
		PROPERTIES_FILE = pROPERTIES_FILE;
	}
}
